package com.woolink.per.sys.role.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * Role entity. @author MyEclipse Persistence Tools
 */

public class Role implements java.io.Serializable
{
    
    // Fields    
    
    private Integer roleId;
    
    private String roleName;
    
    private String roleDesc;
    
    private Integer enabled;
    
    private Set roleAuthorities = new HashSet(0);
    
    private Set userRoles = new HashSet(0);
    
    // Constructors
    
    /** default constructor */
    public Role()
    {
    }
    
    /** full constructor */
    public Role(String roleName, String roleDesc, Integer enabled,
            Set roleAuthorities, Set userRoles)
    {
        this.roleName = roleName;
        this.roleDesc = roleDesc;
        this.enabled = enabled;
        this.roleAuthorities = roleAuthorities;
        this.userRoles = userRoles;
    }
    
    // Property accessors
    
    public Integer getRoleId()
    {
        return this.roleId;
    }
    
    public void setRoleId(Integer roleId)
    {
        this.roleId = roleId;
    }
    
    public String getRoleName()
    {
        return this.roleName;
    }
    
    public void setRoleName(String roleName)
    {
        this.roleName = roleName;
    }
    
    public String getRoleDesc()
    {
        return this.roleDesc;
    }
    
    public void setRoleDesc(String roleDesc)
    {
        this.roleDesc = roleDesc;
    }
    
    public Integer getEnabled()
    {
        return this.enabled;
    }
    
    public void setEnabled(Integer enabled)
    {
        this.enabled = enabled;
    }
    
    public Set getRoleAuthorities()
    {
        return this.roleAuthorities;
    }
    
    public void setRoleAuthorities(Set roleAuthorities)
    {
        this.roleAuthorities = roleAuthorities;
    }
    
    public Set getUserRoles()
    {
        return this.userRoles;
    }
    
    public void setUserRoles(Set userRoles)
    {
        this.userRoles = userRoles;
    }
    
}